﻿using IBLL;
using IDAL;
using Model;

namespace BLL
{
    public class MemberBLL:IMemberBLL
    {
        public MemberBLL(IBase<Member> db)
        {
            Db = db;
        }

        public IBase<Member> Db { get; }
        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="name"></param>
        /// <param name="pwd"></param>
        /// <returns></returns>
        /// <exception cref="NotImplementedException"></exception>
        public Member Login(string name, string pwd)
        {
            var m = Db.Show().Where(x => x.Name == name).FirstOrDefault();
            return m;
        }
    }
}
